package com.bite.system.test.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.bite.system.test.domain.TestDomain;
import com.bite.system.test.mapper.TestMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 均先生
 */
public interface ITestService {
    List<TestDomain> list();

    @Service
    class TestService implements ITestService {
        @Autowired
        private TestMapper testMapper;
        @Override
        public List<TestDomain> list() {
            List<TestDomain> list = testMapper.selectList(new LambdaQueryWrapper<>());
            System.out.println("");
            return list;

        }
    }
}
